<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>留学生管理系统</title>
        <link rel="stylesheet" href="${path}/css/admin3.css">
        <link rel="stylesheet" href="${path}/css/student.css">
        <style>
            table th{
                width: 5%;
            }
            table td{
                width: 10%;
            }
        </style>
        <script>
            var _current_item = "#myTimeTable";
        </script>
        <!--<link rel="stylesheet" href="${path}/css/coursemanage-kb.css"/>--> 
        <script type="text/javascript" src="${path}/js/jquery.min.js"></script>
    </head>
    <body>
        <input type="hidden" value="${session.passportNo}" id="PN">
        <!--header-->
        <div id="header"></div>
        <div id="main">
            <div id="side-menu"></div>
            <div id="container">
                <div id="inner-border">

                    <div class="st1">
                        <#if term?exists>
                        <form action="${path}/studentschedule/search" method="post">
                            <span class="st2">term</span>
                            <div class="st3">
                                <select name="termValue" id="termValue" class="st5">
                                    <#list term as t>
                                    <#if t.current==1>
                                    <option value="${t.termValue}" selected="selected">${t.termValue}</option>
                                    <#else>
                                    <option value="${t.termValue}">${t.termValue}</option>
                                    </#if>
                                    </#list>  
                                </select>
                            </div>
                            <input type="button" onclick="setMajor()" value="search" class="button st4">
                        </form>
                        </#if>
                    </div>
                    <script type="text/javascript">
                        function ajaxsearch() {
                            $.ajax({
                                type: "post",
                                url: '${path}/studentschedule/ajaxsearch',
                                data: {
                                    term: $('#term').val(),
                                },
                                datatype: "json",
                                success: function (data) {
                                    //若error值为0则所选学期没有相应数据，弹出提示框，若为1则调用课表渲染函数
                                    if (error.data == 0)
                                        alert("找不到相关数据");
                                    else {

                                    }
                                }
                            });
                        }
                    </script>

                    <div id="kbtable"></div>
                </div>
                
            </div>
        </div>
<div id="footer"></div>
        <script type="text/javascript" src="${path}/js/student-main-appearance.js"></script>
        <script type="text/javascript" src="${path}/js/stuTimetable.js"></script>
    </body>
</html>
